CC = g++
LD = g++
prog = music_test
SRC = \
	test.cpp 
OBJ = \
	test.o 

LDFLAGS = -L../../model -lmodel -L../ -lmusic -L../../network -lnetwork -L../../network/socket -lsocket_cpp
CFLAGS = -I/usr/include/libxml2 -std=c99 -g -fPIC -DPIC -fvar-tracking  

all: $(prog)

${prog}: $(OBJ)
	$(LD) $(LDFLAGS) $(OBJ) -o $(prog)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $< -o $@

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm $(OBJ)
	rm $(prog)

run:
	./$(prog)
